package com.mzpai.product.service;
import java.util.List;
import java.util.Map;

import com.mzpai.product.model.StoreSeckill;
import com.mzpai.product.model.UserSuccessKilled;
import com.mzpai.service.BaseService;

public interface UserSuccessKilledService extends BaseService<UserSuccessKilled> {
	
	UserSuccessKilled queryByPrimaryId(Integer id);
	
	void insertBatch(List<UserSuccessKilled> userSuccessKilledlList);
	
	void saveSeckillSuccessOrder(List<UserSuccessKilled> userSuccessKilledList);
	
	void updateUserSuccessKilledAndStoreSeckill(UserSuccessKilled userSuccessKilled,List<StoreSeckill> listStoreSeckill);
	
	/**
	 * 统计当前用户购买商品总数
	 * @param productId
	 */
	Integer countTotalByUserIdAndSeckillId(Map<String,Object> map);
	
}